package com.scy.hospitalmanager.controller;

import com.scy.hospitalmanager.service.impl.NurseTimeTableServiceImpl;
import com.scy.hospitalmanager.until.ResponseMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: 护士交接班展示
 * @ClassName: NurseTimeTableController
 * @Author: KuonnjiArisu
 * @Date: 2021/8/23 10:56
 * @Version: 1.0
 */
@Controller
public class NurseTimeTableController {
    @Autowired
    NurseTimeTableServiceImpl nurseTimeTableService;

    @GetMapping("/getNurseTimeTable")
    @ResponseBody
    public ResponseMap getNurseTimeTable() {
        return ResponseMap.OK(nurseTimeTableService.getAllNurseTimeTable());
    }
}
